home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / fortune-.rea < prev    next >
Text File  |  1996-11-17  |  3KB  |  61 lines

  1. This version of fortune is a modification of the NetBSD fortune, as
  2. tweaked by Florian La Roche (see below, and many thanks to Florian for
  3. starting the update), and then massively hacked on by Amy Lewis.
  4.  
  5. I (Amy) hacked on this because it was broken; the BSD source itself is
  6. broken (I looked at it).  Specifically, if you are using an old version
  7. of fortune, then it accesses *only* the two files "fortunes" and
  8. "fortunes-o", even though 'fortune -[ao]f' will tell you differently.
  9. That was my original reason to start working with the code.
  10.  
  11. Bug fixes: fortune now reads the same file list that it reports with -f.
  12. strfile now really sorts and randomizes, instead of just setting the
  13. 'sorted' and 'randomized' flags.  strfile does not lose the pointer to a
  14. fortune that follows a null fortune.
  15.  
  16. Enhancements: fortune -f now prints percentages, whether specified on the
  17. command line or not.  fortune -m now prints filenames to stderr; the
  18. fortunes printed to stdout can be redirected into a file which is valid
  19. strfile format.  fortune -l|s can be modified with -n _number_ to specify
  20. the number of characters in a short fortune (default 160, as before).
  21. The means of distinguishing between offensive and inoffensive fortunes is
  22. changed: offensive fortunes are put in a separate subdirectory.  The
  23. contents of the fortunes databases have been extensively reviewed, and
  24. broken into smaller, more manageable [hopefully] files.
  25. strfile is not notably enhanced, though it received the most significant
  26. bug fixes.  unstr now accepts a command line parameter -c _char_ which
  27. globally changes the delimiter character.  unstr now accepts an output
  28. file as the second file parameter, and can tell if a file has a '.dat'
  29. extension.
  30. An example of the use of fortune-style databases for other purposes,
  31. called randstr, has been added.  See util/README.randstr
  32. The Makefiles have been extensively hacked upon.
  33.  
  34. Bugs: combining -a with xx% filename, when _filename_ is found in both
  35. the offensive and the inoffensive directories, causes fortune to exit
  36. without an error message.  I think it's confused as to which file gets
  37. the xx%.  I should fix this.  Don't hold your breath, though.
  38.  
  39. For more information, see the files ChangeLog, Offensive, README.install,
  40. and cookie-files in the top-level directory, and the comments in the
  41. various *.c source files.
  42.  
  43. Amy A. Lewis    alewis@email.unc.edu    October, 1995
  44.  
  45. ----Florian's README.LINUX---
  46. I have looked at sunsite and tsx and found one very old fortune program
  47. and one in the debian Linux distribution. But comparing that one with
  48. the version in NetBSD-current showed me, that NetBSD-current has fixed
  49. so many speeling-bugs that I just had to repackage everything for the
  50. Linux community.
  51.  
  52. In the source package are all changes for Linux in the file LINUX.DIF.
  53. (Rewriting the Makefiles and some trivial small fixes.)
  54.  
  55. I expect this "fortune.tar.gz" to show up under /pub/Linux/games.
  56.  
  57. Not only the kernel needs speeling-corrections,
  58.  
  59. Florian La Roche      florian@jurix.jura.uni-sb.de      April 1995
  60.  
  61.